package com.ld.control.business.user.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ld.control.business.user.model.MenuModel;
import com.ld.control.business.user.vo.resp.MenuRespVo;
import com.ld.control.business.user.vo.resp.MenuTreeRespVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统菜单表 Mapper 接口
 * </p>
 *
 * @author wangfeng
 * @since 2024-04-12
 */
public interface MenuMapper extends BaseMapper<MenuModel> {

    /**
     * 查询所有数据
     * @return
     */
    List<MenuTreeRespVo> selectAllList();

    /**
     * 根据橘色ID查询菜单信息
     * @param roleIdList
     * @return
     */
    List<MenuTreeRespVo> selectListByRoleIdList(@Param("roleIdList") List<Long> roleIdList, @Param("type") Integer type);

}
